class Client < ActiveRecord::Base
validates_presence_of :status
belongs_to :client_group
has_many :tasks
STATUS = [ ['--SELECT--', nil],
           ['Individual', 'P'],
           ['Company', 'C'],
           ['HUF', 'H']
         ]
SALUTATION = [
           ['Mr.', 'Mr.'],
           ['Mrs.', 'Mrs.'],
           ['Miss', 'Miss']
         ]
GENDER = [
         ['Male' , 'Male'],
         ['Female' , 'Female']
         ]
def to_s
if self.status == 'P'
  self.first_name + " " + self.laat_name
else
  self.firm_name
end
end

end
